﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;

public class BossHpController : MonoBehaviour
{
    Slider slider;

    public Enemy_BOSS_Controller boss;

    void Start()
    {
        slider = GetComponent<Slider>();
        slider.maxValue = boss.maxHp;
    }

    void Update()
    {
        slider.value = boss.hp;
    }
}
